package com.yeyks.common.utils.webutil;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class CityUtils {
    /**
     * status : OK
     * result : {"location":{"lng":106.558434,"lat":29.568996},"precise":0,"confidence":20,"level":"城市"}
     */

    private String status;
    private ResultBean result;

    @NoArgsConstructor
    @Data
    public static class ResultBean {
        /**
         * location : {"lng":106.558434,"lat":29.568996}
         * precise : 0
         * confidence : 20
         * level : 城市
         */

        private LocationBean location;
        private int precise;
        private int confidence;
        private String level;

        @NoArgsConstructor
        @Data
        public static class LocationBean {
            /**
             * lng : 106.558434
             * lat : 29.568996
             */

            private double lng;
            private double lat;
        }
    }
}
